package com.intelligencesoft.pss.controller;

import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/view")
public class ViewAction {
	@RequestMapping(value="/{jspfile}", method=RequestMethod.GET)
	public   String returnJsp(@PathVariable String jspfile) {
		jspfile=StringUtils.replace(jspfile, ".", "/");
		return jspfile;
	}
}
